package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 水质数据表
 * @TableName water_quality_data
 */
@TableName(value ="water_quality_data")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WaterQualityData implements Serializable {
    /**
     * 数据ID
     */
    @TableId(type = IdType.AUTO)
    private Long dataId;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 采集时间
     */
    private Date collectTime;

    /**
     * pH值
     */
    private String phValue;

    /**
     * 温度
     */
    private String temperature;

    /**
     * 浊度
     */
    private String turbidity;

    /**
     * 数据质量：1-正常，2-异常
     */
    private Integer dataQuality;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
